package vip.xiaonuo.biz.modular.order.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 门票订单预约时间更新参数
 *
 * @author gtc
 *
 **/
@Getter
@Setter
public class BizOrderUpdateReservationTimeParam {

    /** 主键 */
    @ApiModelProperty(value = "主键", required = true, position = 1)
    @NotBlank(message = "id不能为空")
    private String id;

    /** 预约时间 */
    @ApiModelProperty(value = "预约时间", required = true, position = 2)
    @NotNull(message = "预约时间不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date reservationTime;
} 